package com.scy.sqlSession;

import com.scy.entity.Configuration;

/**
 * @author 司晨雨
 * @date 2020/4/28 14:42
 * @description
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
